Optimal. Leaf size=126 \[ \frac {4 a^3 (-4 d+i c) \sqrt {c+d \tan (e+f x)}}{3 d^2 f}-\frac {2 \left (a^3+i a^3 \tan (e+f x)\right ) \sqrt {c+d \tan (e+f x)}}{3 d f}-\frac {8 i a^3 \tanh ^{-1}\left (\frac {\sqrt {c+d \tan (e+f x)}}{\sqrt {c-i d}}\right )}{f \sqrt {c-i d}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.30, antiderivative size = 126, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, integrand size = 30, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {3556, 3592, 3537, 63, 208} \[ \frac {4 a^3 (-4 d+i c) \sqrt {c+d \tan (e+f x)}}{3 d^2 f}-\frac {2 \left (a^3+i a^3 \tan (e+f x)\right ) \sqrt {c+d \tan (e+f x)}}{3 d f}-\frac {8 i a^3 \tanh ^{-1}\left (\frac {\sqrt {c+d \tan (e+f x)}}{\sqrt {c-i d}}\right )}{f \sqrt {c-i d}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 63
Rule 208
Rule 3537
Rule 3556
Rule 3592
Rubi steps
\begin {align*} \int \frac {(a+i a \tan (e+f x))^3}{\sqrt {c+d \tan (e+f x)}} \, dx &=-\frac {2 \left (a^3+i a^3 \tan (e+f x)\right ) \sqrt {c+d \tan (e+f x)}}{3 d f}+\frac {(2 a) \int \frac {(a+i a \tan (e+f x)) (a (i c+2 d)+a (c+4 i d) \tan (e+f x))}{\sqrt {c+d \tan (e+f x)}} \, dx}{3 d}\\ &=\frac {4 a^3 (i c-4 d) \sqrt {c+d \tan (e+f x)}}{3 d^2 f}-\frac {2 \left (a^3+i a^3 \tan (e+f x)\right ) \sqrt {c+d \tan (e+f x)}}{3 d f}+\frac {(2 a) \int \frac {6 a^2 d+6 i a^2 d \tan (e+f x)}{\sqrt {c+d \tan (e+f x)}} \, dx}{3 d}\\ &=\frac {4 a^3 (i c-4 d) \sqrt {c+d \tan (e+f x)}}{3 d^2 f}-\frac {2 \left (a^3+i a^3 \tan (e+f x)\right ) \sqrt {c+d \tan (e+f x)}}{3 d f}+\frac {\left (24 i a^5 d\right ) \operatorname {Subst}\left (\int \frac {1}{\sqrt {c-\frac {i x}{6 a^2}} \left (-36 a^4 d^2+6 a^2 d x\right )} \, dx,x,6 i a^2 d \tan (e+f x)\right )}{f}\\ &=\frac {4 a^3 (i c-4 d) \sqrt {c+d \tan (e+f x)}}{3 d^2 f}-\frac {2 \left (a^3+i a^3 \tan (e+f x)\right ) \sqrt {c+d \tan (e+f x)}}{3 d f}-\frac {\left (288 a^7 d\right ) \operatorname {Subst}\left (\int \frac {1}{-36 i a^4 c d-36 a^4 d^2+36 i a^4 d x^2} \, dx,x,\sqrt {c+d \tan (e+f x)}\right )}{f}\\ &=-\frac {8 i a^3 \tanh ^{-1}\left (\frac {\sqrt {c+d \tan (e+f x)}}{\sqrt {c-i d}}\right )}{\sqrt {c-i d} f}+\frac {4 a^3 (i c-4 d) \sqrt {c+d \tan (e+f x)}}{3 d^2 f}-\frac {2 \left (a^3+i a^3 \tan (e+f x)\right ) \sqrt {c+d \tan (e+f x)}}{3 d f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 5.20, size = 168, normalized size = 1.33 \[ \frac {a^3 (\cos (e+f x)+i \sin (e+f x))^3 \left (\frac {2 (\sin (3 e)+i \cos (3 e)) (2 c-d \tan (e+f x)+9 i d) \sqrt {c+d \tan (e+f x)}}{3 d^2}-\frac {8 i e^{-3 i e} \tanh ^{-1}\left (\frac {\sqrt {c-\frac {i d \left (-1+e^{2 i (e+f x)}\right )}{1+e^{2 i (e+f x)}}}}{\sqrt {c-i d}}\right )}{\sqrt {c-i d}}\right )}{f (\cos (f x)+i \sin (f x))^3} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.51, size = 427, normalized size = 3.39 \[ \frac {3 \, {\left (d^{2} f e^{\left (2 i \, f x + 2 i \, e\right )} + d^{2} f\right )} \sqrt {-\frac {64 i \, a^{6}}{{\left (i \, c + d\right )} f^{2}}} \log \left (\frac {{\left (8 \, a^{3} c + \sqrt {-\frac {64 i \, a^{6}}{{\left (i \, c + d\right )} f^{2}}} {\left ({\left (i \, c + d\right )} f e^{\left (2 i \, f x + 2 i \, e\right )} + {\left (i \, c + d\right )} f\right )} \sqrt {\frac {{\left (c - i \, d\right )} e^{\left (2 i \, f x + 2 i \, e\right )} + c + i \, d}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}} + {\left (8 \, a^{3} c - 8 i \, a^{3} d\right )} e^{\left (2 i \, f x + 2 i \, e\right )}\right )} e^{\left (-2 i \, f x - 2 i \, e\right )}}{4 \, a^{3}}\right ) - 3 \, {\left (d^{2} f e^{\left (2 i \, f x + 2 i \, e\right )} + d^{2} f\right )} \sqrt {-\frac {64 i \, a^{6}}{{\left (i \, c + d\right )} f^{2}}} \log \left (\frac {{\left (8 \, a^{3} c + \sqrt {-\frac {64 i \, a^{6}}{{\left (i \, c + d\right )} f^{2}}} {\left ({\left (-i \, c - d\right )} f e^{\left (2 i \, f x + 2 i \, e\right )} + {\left (-i \, c - d\right )} f\right )} \sqrt {\frac {{\left (c - i \, d\right )} e^{\left (2 i \, f x + 2 i \, e\right )} + c + i \, d}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}} + {\left (8 \, a^{3} c - 8 i \, a^{3} d\right )} e^{\left (2 i \, f x + 2 i \, e\right )}\right )} e^{\left (-2 i \, f x - 2 i \, e\right )}}{4 \, a^{3}}\right ) + {\left (16 i \, a^{3} c - 64 \, a^{3} d - 16 \, {\left (-i \, a^{3} c + 5 \, a^{3} d\right )} e^{\left (2 i \, f x + 2 i \, e\right )}\right )} \sqrt {\frac {{\left (c - i \, d\right )} e^{\left (2 i \, f x + 2 i \, e\right )} + c + i \, d}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}}}{12 \, {\left (d^{2} f e^{\left (2 i \, f x + 2 i \, e\right )} + d^{2} f\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.94, size = 243, normalized size = 1.93 \[ \frac {32 i \, a^{3} \arctan \left (\frac {4 \, {\left (\sqrt {d \tan \left (f x + e\right ) + c} c - \sqrt {c^{2} + d^{2}} \sqrt {d \tan \left (f x + e\right ) + c}\right )}}{c \sqrt {-8 \, c + 8 \, \sqrt {c^{2} + d^{2}}} - i \, \sqrt {-8 \, c + 8 \, \sqrt {c^{2} + d^{2}}} d - \sqrt {c^{2} + d^{2}} \sqrt {-8 \, c + 8 \, \sqrt {c^{2} + d^{2}}}}\right )}{\sqrt {-8 \, c + 8 \, \sqrt {c^{2} + d^{2}}} f {\left (-\frac {i \, d}{c - \sqrt {c^{2} + d^{2}}} + 1\right )}} - \frac {2 i \, {\left (d \tan \left (f x + e\right ) + c\right )}^{\frac {3}{2}} a^{3} d^{4} f^{2} - 6 i \, \sqrt {d \tan \left (f x + e\right ) + c} a^{3} c d^{4} f^{2} + 18 \, \sqrt {d \tan \left (f x + e\right ) + c} a^{3} d^{5} f^{2}}{3 \, d^{6} f^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.30, size = 1748, normalized size = 13.87 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (i \, a \tan \left (f x + e\right ) + a\right )}^{3}}{\sqrt {d \tan \left (f x + e\right ) + c}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 6.55, size = 119, normalized size = 0.94 \[ -\left (\frac {a^3\,\left (c-d\,1{}\mathrm {i}\right )\,2{}\mathrm {i}}{d^2\,f}-\frac {a^3\,\left (c+d\,1{}\mathrm {i}\right )\,4{}\mathrm {i}}{d^2\,f}\right )\,\sqrt {c+d\,\mathrm {tan}\left (e+f\,x\right )}-\frac {a^3\,{\left (c+d\,\mathrm {tan}\left (e+f\,x\right )\right )}^{3/2}\,2{}\mathrm {i}}{3\,d^2\,f}+\frac {a^3\,\mathrm {atan}\left (\frac {\sqrt {c+d\,\mathrm {tan}\left (e+f\,x\right )}}{\sqrt {-c+d\,1{}\mathrm {i}}}\right )\,8{}\mathrm {i}}{f\,\sqrt {-c+d\,1{}\mathrm {i}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ - i a^{3} \left (\int \frac {i}{\sqrt {c + d \tan {\left (e + f x \right )}}}\, dx + \int \left (- \frac {3 \tan {\left (e + f x \right )}}{\sqrt {c + d \tan {\left (e + f x \right )}}}\right )\, dx + \int \frac {\tan ^{3}{\left (e + f x \right )}}{\sqrt {c + d \tan {\left (e + f x \right )}}}\, dx + \int \left (- \frac {3 i \tan ^{2}{\left (e + f x \right )}}{\sqrt {c + d \tan {\left (e + f x \right )}}}\right )\, dx\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________